# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-liblnk-python
_pkgname=liblnk
__pkgname=liblnk-python
pkgver=20240423
pkgrel=3
pkgdesc='Library and tools to access the Windows Shortcut File (LNK) format.'
url='https://pypi.org/project/liblnk-python/'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$__pkgname/$__pkgname-$pkgver.tar.gz")
sha512sums=('702f9f0a5c3ff0e72504efe6cd8aadd6e25cb5026745ade6cf2e2a297f200947a92af646d7d3fa3e96872f70715fc8fb94d54ab0efbb8ae6ce233d0e746826d5')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

